package com.atguigu.eduservice.client;
import com.atguigu.commonutils.Result;
import com.atguigu.eduservice.client.impl.VodClientFeignException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

//调用的服务的名称  同时开启熔断操作
@FeignClient(value = "service-vod",fallback = VodClientFeignException.class)
@Component
public interface VodClient {
	//定义你要调用的方法的路径
	 @DeleteMapping(value = "/eduvod/vod/removeVideo/{videoId}")
	 //@PathVariable("videoId")
     Result removeVideo(@PathVariable("videoId") String videoId);

	@PostMapping("/getMember")
	 Result getMember(HttpServletRequest request) ;


}
